<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	template="../../Template/TemplateAdmin.xhtml"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rich="http://richfaces.org/rich">


	<ui:define name="title">
		Trang chủ Admin
  	</ui:define>

	<ui:define name="content">
		<!-- Content -->
		<div id="MainPanel" align="left">

			<div class="ContentPart">
				<h1 class="ContentPartTitle" align="center">TRANG CHỦ ADMIN</h1>
			</div>
			<div class="ContentPart">
				<h3 class="ContentPartHeader">Các tham số trong hệ thống</h3>
				<div class="ContentPartContent">
					<div id="rightAction" align="right">

						<div class="actionWideButtonRight" align="center"
							onclick="ShowEditDialog()">
							<img class="buttonImage imgNoBackgroundBorder"
								src="../../Images/Icon/icon_editLarge.png" alt="Thêm" />
							<div class="buttonCaption">Sửa tham số</div>
						</div>
						<!-- <h:commandLink action="#{adminHomeBean.GetPaypalUrl()}">
							<div class="actionWideButtonRight" align="center">
								<img class="buttonImage imgNoBackgroundBorder"
									src="../../Images/Icon/icon_lietKeLarge.png" alt="Liệt kê" />
								<div class="buttonCaption">Get Paypal URL Test</div>
							</div>
						</h:commandLink> -->
					</div>
					<div id="leftAction">
						<div class="ins">Số sản phẩm trong 1 trang:</div>
						<div class="info red bold mediumSize adminHomeText">#{adminHomeBean.soSanPhamTrenMotTrang}</div>
					</div>
				</div>
			</div>

			<div class="ContentPart">
				<div class="ContentPartContent">
					<h:messages id="messageNotification" />
				</div>
			</div>
		</div>
		<!-- Content -->

		<h:outputScript library="js" name="AdminHome.js" target="head" />

		<div id="editThamSo" class="hidden">
			<!-- <h:form id="dialogForm" prependId="false"
				enctype="multipart/form-data"> -->
			<p>Số sản phẩm trên 1 trang</p>
			<h:inputText value="#{adminHomeBean.soSanPhamTrenMotTrang}" />

			<br /> <br />
			<h:commandButton class="dialogButton buttonLink button" value="Sửa"
				action="#{adminHomeBean.SuaGiaTriThamSo()}" />
			<!-- </h:form> -->
		</div>
	</ui:define>
</ui:composition>